Skip to content

fix: run CI on main in addition to master - #9

Merged
leochong merged 1 commit into
mainfrom
fix/ci-trigger-main-branch
Aug 8, 2026
Merged

fix: run CI on main in addition to master#9
leochong merged 1 commit into
mainfrom
fix/ci-trigger-main-branch

Conversation

@leochong

@leochong leochong commented Aug 8, 2026

Copy link
Copy Markdown

Summary

  • .github/workflows/ci.yml only triggered on push/PR to master, but main is the repo's actual default branch (gh repo view --json defaultBranchRef confirms this) — PRs targeting main got no CI run at all, which is why PR Add migration state tracking (--status, --history, --promote, --record-rollback) #8 merged with no checks.
  • Adds main alongside master to the trigger list so both are covered during the transition.
  • Documents the finding in .github/CI_NOTES.md, including that main still has no branch protection rule while master has one with 13 required status checks — that's a separate repo-settings change (not a workflow file change) and hasn't been done yet.

Test plan

  • python -c "import yaml; yaml.safe_load(open('.github/workflows/ci.yml'))" — valid YAML
  • grep -rn master .github/workflows/*.yml — only the intended ci.yml trigger lines remain; cd.yml is tag-triggered and unaffected
  • Confirm the CI workflow actually fires on this PR (since it now targets main)

🤖 Generated with Claude Code

The GitHub Actions CI workflow only triggered on push/PR to `master`,
but `main` is the repo's actual default branch (confirmed via
`gh repo view --json defaultBranchRef`). PRs targeting `main` — like
the one that just merged the migration state tracking feature — got
no CI run at all. Adds `main` to the trigger branches alongside
`master` and documents the finding in CI_NOTES.md, including that
`main` still lacks the branch protection rule that `master` has
(a separate repo-settings change, not covered here).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@leochong
leochong merged commit d4adf68 into main Aug 8, 2026
2 of 14 checks passed
@leochong
leochong deleted the fix/ci-trigger-main-branch branch August 8, 2026 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant